package com.situ.mall.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.mall.order.pojo.query.OrderInfoQuery;
import com.situ.mall.order.pojo.query.OrderQuery;
import com.situ.mall.order.pojo.vo.OrderCountVO;
import com.situ.mall.order.pojo.vo.OrderInfoVO;
import com.situ.mall.pojo.entity.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author Sun Huijuan
 * @since 2024-10-14
 */
public interface IOrderInfoService extends IService<OrderInfo> {
	
	void add(OrderInfo orderInfo);
	
	List<OrderInfoVO> list(OrderInfoQuery orderInfoQuery);
	
	OrderInfoVO selectById(Long id);
	
	void updateStatus(Long id, Integer status);
	
	IPage<Map<String, Object>> selectList(OrderInfoQuery orderInfoQuery);
	
	List<OrderCountVO> selectOrderCount();
	
	BigDecimal selectSaleCount();
	
	void exportExcel(HttpServletResponse response);
	
}
